package org.kjtc.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.kjtc.entity.ChargingStation;

import java.util.List;
import java.util.Map;

/**
 * @ Author     ：Yellowong
 * @ Date       ：Created in 10:49 2018/12/6
 * @ Description：
 */
@Mapper
public interface StationMapper {

    /* 返回符合查询条件的充电站列表 */
    @SelectProvider(type = StationProvider.class, method = "getStationList")
    List<ChargingStation> getStationList(ChargingStation station);

    /* 根据状态返回充电站数量 */
    @SelectProvider(type = StationProvider.class, method = "stationStatusStatistics")
    List<Map> stationStatusStatistics();
}
